import request from '../utils/request';

export async function query() {
  return request('/rest/sys/dept/tree');
}

export async function add(params) {
  return request('/rest/sys/dept/save',{
    method: 'POST',
    body: {
      ...params
    },
  });
}
export async function remove(params){
	return request('/rest/sys/dept/delete',{
    method: 'POST',
    body: {
      ...params
    },
  });
}
export async function update(params){
  return request('/rest/sys/dept/update',{
    method: 'POST',
    body: {
      ...params
    },
  });
}